package com.qsd.common.util;

/**
 * 
 * 
 * @ClassName: ResultMsg
 * @Description: 查询数据后可分页显示
 * @author itmck
 * @Data 2019年2月15日
 *
 */
public class ResultMsg {

	private Integer code = 0;

	private String msg = "";

	private Object data;

	private long count;

	public ResultMsg(Integer code, String msg, Object data, long count) {
		super();
		this.code = code;
		this.msg = msg;
		this.data = data;
		this.count = count;
	}

	public ResultMsg(Integer code, String msg, Object data) {
		super();
		this.code = code;
		this.msg = msg;
		this.data = data;
	}

	public ResultMsg(Object data, Integer count) {
		this.data = data;
		this.count = count;
	}

	public ResultMsg(String msg, Integer count) {
		super();
		this.msg = msg;
		this.count = count;
	}
	public ResultMsg(Object data) {
		super();
		this.data = data;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public long getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}
}
